Skip to content

fix CI for uv#218

Merged
himkt merged 4 commits intohimkt:mainfrom
hirosassa:fix-ci-as-uv-way
Apr 28, 2025
Merged

fix CI for uv#218
himkt merged 4 commits intohimkt:mainfrom
hirosassa:fix-ci-as-uv-way

Conversation

@hirosassa
Copy link
Contributor

@hirosassa hirosassa commented Apr 27, 2025

Hi, thank you for creating such a great tool!

In this PR, I simplified CI using uv features.
Please check!

ignore_missing_imports = true

[tool.uv]
dev-dependencies = [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dev-dependencies will be deprecated in the future.
Changed it to dependency-groups.
https://docs.astral.sh/uv/concepts/projects/dependencies/#development-dependencies

Comment on lines +22 to +24
# uv
COPY --from=ghcr.io/astral-sh/uv:0.6.17 /uv /uvx /bin/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

@himkt himkt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much @hirosassa for making the project management more sophisticated! I've just learned several stuffs in uv (deprecation, and practice for building a project on docker image build).

I put several requests, could you please take a look?

max-parallel: 4
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Comment on lines +42 to +45
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --frozen --no-install-project --no-dev
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hirosassa and others added 3 commits April 28, 2025 13:20
Co-authored-by: himkt <himkt@klis.tsukuba.ac.jp>
Co-authored-by: himkt <himkt@klis.tsukuba.ac.jp>
Co-authored-by: himkt <himkt@klis.tsukuba.ac.jp>
@hirosassa hirosassa requested a review from himkt April 28, 2025 04:27
Copy link
Owner

@himkt himkt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, thank you for the contribution!

@himkt himkt merged commit 84fe7be into himkt:main Apr 28, 2025
@hirosassa
Copy link
Contributor Author

Thank you for your quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants